num = int(input("请输入一个正整数："))
n = num
count = 1
if n // 10 == 0:
    pass
else:
    while n // 10 != 0:
        n = n // 10
        count += 1
print("该数为%d位数" % count)
